package com.lucy.disk.event;

import com.lucy.disk.domain.entity.FileEntity;
import lombok.Data;
import lombok.Getter;
import org.springframework.context.ApplicationEvent;
import org.springframework.context.ApplicationEventPublisher;

import java.time.Clock;
import java.util.ServiceLoader;

/**
 * @author kindear
 * 文件（夹）删除完成事件
 */
@Getter
public class FileDeletedEvent extends ApplicationEvent {
    FileEntity file;
    public FileDeletedEvent(Object source,FileEntity file) {
        super(source);
        this.file = file;
    }

    public FileDeletedEvent(Object source, Clock clock) {
        super(source, clock);
    }

}
